import com.googlecode.utterlyidle.ApplicationBuilder;

import static com.googlecode.totallylazy.proxy.Call.method;
import static com.googlecode.totallylazy.proxy.Call.on;
import static com.googlecode.utterlyidle.ApplicationBuilder.application;
import static com.googlecode.utterlyidle.ServerConfiguration.defaultConfiguration;
import static com.googlecode.utterlyidle.dsl.BindingBuilder.get;

public class Main {
    public static void main(String[] args) {
        final ApplicationBuilder application = application().add(get("/").resource(method(on(Behaviour.class).hello())));
        application.start(defaultConfiguration().port(9001));
    }

    public static class Behaviour {
        public String hello() {
            return "Hello";
        }
    }
}
